// 配置vuex
import Vue from "vue";
import Vuex from 'vuex'

Vue.use(Vuex)

// 引入小仓库
import home from './home/index.js'
import search from './search/index.js'
import detail from './detail/detail.js'
import shopcart from "./shopcart/shopcart.js"
import user from './user/user.js'
import trade from './trade/trade.js'

export default new Vuex.Store({
  // 实现vuex仓库模块化开发
  modules: {
    home,
    search,
    detail,
    shopcart,
    user,
    trade
  }
})